package rfBio;

public class blastm8 {
	
	// instance variables
	
	private String query;
	private String subject;
	private float p1;
	private int allength;
	private int p2;
	private int p3;
	private int sstart;
	private int sstop;
	private int qstart;
	private int qstop;
	private float evalue;
	private float score;
	private boolean overlaps;
	private String overlaps_with;
	
	// constructors
	public blastm8(){
		query = null;
		subject = null;
		p1 = 0;
		allength = 0;
		p2 = 0;
		p3 = 0;
		sstart = 0;
		sstop = 0;
		qstart = 0;
		qstop = 0;
		evalue = 0;
		score = 0;
		overlaps = false;
		overlaps_with = null;
	}
	
	// copy constructor
	public blastm8(blastm8 b){
		query = b.query;
		subject = b.subject;
		p1 = b.p1;
		allength = b.allength;
		p2 = b.p2;
		p3 = b.p3;
		sstart = b.sstart;
		sstop = b.sstop;
		qstart = b.qstart;
		qstop = b.qstop;
		evalue = b.evalue;
		score = b.score;
		overlaps = b.overlaps;
		overlaps_with = b.overlaps_with;
		
	}
	
	// interface methods
	
	public String get_query(){
		return query;
	}

	public String get_subject(){
		return subject;
	}

	public float get_p1(){
		return p1;
	}
	
	public int get_allength(){
		return allength;
	}
	
	public int get_p2(){
		return p2;
	}
	
	public int get_p3(){
		return p3;
	}
	
	public int get_qstart(){
		return qstart;
	}
	
	public int get_qstop(){
		return qstop;
	}

	public int get_sstart(){
		return sstart;
	}

	public int get_sstop(){
		return sstop;
	}
	
	public float get_evalue(){
		return evalue;
	}
	
	public float get_score(){
		return score;
	}
	
	public boolean get_overlaps() {
		return overlaps;
	}
	
	public String get_overlaps_with(){
		return overlaps_with;
	}
	public void set_query(String s){
		 query = s;
	}

	public void set_subject(String s){
		subject = s;
	}
	
	public void set_p1(float f){
		p1 = f;
	}

	public void set_p2(int i){
		p2 = i;
	}
	
	public void set_p3(int i){
		p3 = i;
	}
	
	public void set_allength(int i){
		allength = i;
	}
	
	public void set_qstart(int i){
		qstart = i;
	}
	
	public void set_qstop(int i){
		qstop = i;
	}

	public void set_sstart(int i){
		sstart = i;
	}

	public void set_sstop(int i){
		sstop = i;
	}
	
	public void set_evalue(float f){
		evalue = f;
	}
	
	public void set_score(float f){
		score = f;
	}
	
	public void set_overlaps_toTrue(){
		overlaps = true;
	}
	
	public void set_overlaps_toFalse(){
		overlaps = false;
	}
	
	public void set_overlaps_with(String s){
		overlaps_with = s;
	}
	
	public String toString(){
		String s;
		s= query + " " + subject + " " + p1 + " " + allength + " " + p2 + " " + p3 + " " + sstart + " " + sstop + " " + qstart + " " + qstop + " " + evalue + " " + score;
		return s;
	}
}


